<div id="spnoibat">
    <div class="spnoibat-header">
        <?php
        $sql_dm="SELECT * FROM tbl_danhmuc WHERE danhmuc_id = '".$item."' LIMIT 12";
        $result_dm=mysql_query($sql_dm);
        $row_dm=mysql_fetch_array($result_dm);
        echo '<p>'.$row_dm['danhmuc'].'</p>';
        ?>

    </div>
    <div class="spnoibat-content">
        <?php
        $sql="SELECT * FROM tbl_chungloai WHERE danhmuc_id = '".$item."' LIMIT 12";
        $result=mysql_query($sql);
        while($row=mysql_fetch_array($result))
        {
            ?>
            <div class="sanpham">
                <div class="danhmuc-img">
                    <a href="index.php?page=san-pham&list=chung-loai&cate=<?php echo $row['chungloai_id'];?>"><img src="uploads/<?php echo $row['anhcl']?>" width="110" height="86" class="sp-img"></a>
                </div>
                <div class="danhmuc-main">

                    <h3><a href="index.php?page=san-pham&list=chung-loai&cate=<?php echo $row['chungloai_id'];?>"><?php echo $row['chungloai']?></a></h3>

                </div>
            </div>
        <?php
        }
        ?>
    </div>
</div>